services:
  flask:
    build:
      context: configs/flask
      target: builder
    stop_signal: SIGINT
    networks:
      - balancer-network
    deploy:
      replicas: 3

  nginx:
    build:
      context: configs/nginx
      target: builder
    networks:
      - balancer-network
    ports:
      - 5000:443
    
networks:
  balancer-network:
    name: balancer-network      
